<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>
  <title>Home</title>
</head>
<body>
<form th:action="@{/bb}" th:object="${user}" th:method="post">

    名称<input type="text" th:field="*{name}"/>
   信息 <input type="text" th:field="*{msg}"/>

    <input type="submit"/>
</form>

</body>
</html>